-- GENERATED SPELL FOR [Silvermoon Harry] --


function spell0_24539(pUnit, Event) --@Blast Wave,Self--
pUnit:FullCastSpellOnTarget(15091,pUnit)
pUnit:RegisterEvent('Sorts_24539', 6331, 1)
end

function spell1_24539(pUnit, Event) --@Scorch,n/a--
pUnit:FullCastSpellOnTarget(50183,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24539', 1500, 1)
end

function Sorts_24539(pUnit, Event)
local choix_sorts_24539 = math.random(0, 1)
if choix_sorts_24539 == 0 then
pUnit:RegisterEvent('spell0_24539', 1, 1)
end
if choix_sorts_24539 == 1 then
pUnit:RegisterEvent('spell1_24539', 1, 1)
end
end

function mob24539_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24539', math.random(1500, 3000), 1)
end

function mob24539_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24539_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24539_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24539, 1, 'mob24539_Action')
RegisterUnitEvent(24539, 2, 'mob24539_Leave')
RegisterUnitEvent(24539, 3, 'mob24539_Kill')
RegisterUnitEvent(24539, 4, 'mob24539_Die')
